package com.boliq.lol.adapter;

import com.boliq.lol.R;
import com.boliq.lol.bean.NewsMyselfBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class NewsMyselfAdapter extends BaseQuickAdapter<NewsMyselfBean, BaseViewHolder> {
    public NewsMyselfAdapter() {
        super(R.layout.item_news_myself);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsMyselfBean newsMyselfBean) {
        baseViewHolder.setImageResource(R.id.my_img1,newsMyselfBean.getImag1());
        baseViewHolder.setText(R.id.my_text1,newsMyselfBean.getText1());
        baseViewHolder.setImageResource(R.id.my_img2,newsMyselfBean.getImag2());
        baseViewHolder.setText(R.id.my_text2,newsMyselfBean.getText2());
        baseViewHolder.setText(R.id.my_text3,newsMyselfBean.getText3());
        baseViewHolder.setImageResource(R.id.my_img3,newsMyselfBean.getImag3());
        baseViewHolder.setImageResource(R.id.my_img4,newsMyselfBean.getImag4());
        baseViewHolder.setImageResource(R.id.my_img5,newsMyselfBean.getImag5());
        baseViewHolder.setImageResource(R.id.my_img6,newsMyselfBean.getImag6());
    }
}
